home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000131_icon-group-sender _Mon Aug 21 15:25:45 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
2KB
Received: by cheltenham.cs.arizona.edu; Mon, 21 Aug 1995 13:13:47 MST
To: icon-group@cs.arizona.edu
Date: Mon, 21 Aug 1995 15:25:45 GMT
From: mshapiro@nosc.mil (Michael D Shapiro)
Message-Id: <1995Aug21.152545.21732@nosc.mil>
Organization: NCCOSC RDT&E Division, San Diego, CA
Sender: icon-group-request@cs.arizona.edu
References: <tydemanDDIn2A.A06@netcom.com>
Subject: Re: SNOBOL4 and printing on same line
Errors-To: icon-group-errors@cs.arizona.edu
In article <tydemanDDIn2A.A06@netcom.com>,
Fred Tydeman <tydeman@netcom.com> wrote:
>
>The SNOBOL4 Programming Language, second edition ("green book") on
>page 167-168 talk about output associations and carriage control.
>In looking at a Fortan manual, if the first character printed on a
>line is a '1', then a new page eject is done before printing.
>A '0' causes double spacing, a '+' suppresses spacing before
>printing, eg, prints two successive records on the same line.
>Anything else causes a single space before printing.
>
>So you need to print a '+' as the first character on a line to
>print the next record on the same line.
>
>In SNOBOL4 do
> OUTPUT('OUTPUT',6,'(1H+,132A1)')
>in place of
> OUTPUT('OUTPUT',6,'(1X,132A1)')
That works _if_ you have a SNOBOL4 implementation that uses (or
simulates) the FORTRAN 66 standard for output. We used it because it
was the only reasonably portable standard available at the time. Some
later implementations of SNOBOL4 use other stream-oriented I/O models
(in place of the line-printer-oriented scheme). For some of them, the
FORTRAN "carriage control" option does not work.
--
Michael D. Shapiro, Ph.D. Internet: mshapiro@nosc.mil
Code 4123, NCCOSC RDT&E Division (NRaD) San Diego CA 92152
Voice: (619) 553-4080 FAX: (619) 553-4808 DSN: 553-4080